home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
nihcl-30.lha
/
nihcl-3.0
/
test
/
date.v
< prev
next >
Wrap
Text File
|
1990-05-19
|
3KB
|
129 lines
Test class Date
Date(5) = 6-Jan-01
Date(-3) = 29-Dec-00
Date(367, 1984) = 1-Jan-85
Date(-1, 1984) = 30-Dec-83
nameOfMonth(6) = June
Enter string for dayOfWeek: dayOfWeek(Thu) = 4
Enter string for numberOfMonth: numberOfMonth(Sept) = 9
Enter number for nameOfDay: nameOfDay(6) = Saturday
Reference date is 25-Dec-85
Enter date for scanFrom: Replaced ref_copy by 29-Feb-88
Enter date:
Tuesday, 29-Jan-63
25-Dec-85 - 29-Jan-63 = 8366
29-Jan-63 between(1-Jan-85, 31-Dec-85): 0
29-Jan-63 max(25-Dec-85) = 25-Dec-85
29-Jan-63 min(25-Dec-85) = 29-Jan-63
The date of the previous Sunday is 27-Jan-63
The date of the previous Thursday is 24-Jan-63
date.compare(reference) = -8366
date.day() = 29
date.dayOfMonth() = 29
daysInYear(date.year()) = 365
date.firstDayOfMonth() = 1
date.hash() = 2438059
date.isEqual(reference) = 0
this + 50 = 20-Mar-63
50 + this = 20-Mar-63
this - 60 = 30-Nov-62
this < reference = 1
this > reference = 0
this <= reference = 1
this >= reference = 0
this == reference = 0
this != reference = 1
this += 50 = 20-Mar-63
this -=60 = 30-Nov-62
29-Jan-63
Enter date:
Wednesday, 25-Dec-85
25-Dec-85 - 25-Dec-85 = 0
25-Dec-85 between(1-Jan-85, 31-Dec-85): 1
25-Dec-85 max(25-Dec-85) = 25-Dec-85
25-Dec-85 min(25-Dec-85) = 25-Dec-85
The date of the previous Sunday is 22-Dec-85
The date of the previous Thursday is 19-Dec-85
date.compare(reference) = 0
date.day() = 359
date.dayOfMonth() = 25
daysInYear(date.year()) = 365
date.firstDayOfMonth() = 335
date.hash() = 2446425
date.isEqual(reference) = 1
this + 50 = 13-Feb-86
50 + this = 13-Feb-86
this - 60 = 26-Oct-85
this < reference = 0
this > reference = 0
this <= reference = 1
this >= reference = 1
this == reference = 1
this != reference = 0
this += 50 = 13-Feb-86
this -=60 = 26-Oct-85
29-Jan-63
25-Dec-85
Enter date:
Friday, 5-Jan-01
25-Dec-85 - 5-Jan-01 = -5490
5-Jan-01 between(1-Jan-85, 31-Dec-85): 0
5-Jan-01 max(25-Dec-85) = 5-Jan-01
5-Jan-01 min(25-Dec-85) = 25-Dec-85
The date of the previous Sunday is 31-Dec-00
The date of the previous Thursday is 4-Jan-01
date.compare(reference) = 5490
date.day() = 5
date.dayOfMonth() = 5
daysInYear(date.year()) = 365
date.firstDayOfMonth() = 1
date.hash() = 2451915
date.isEqual(reference) = 0
this + 50 = 24-Feb-01
50 + this = 24-Feb-01
this - 60 = 6-Nov-00
this < reference = 0
this > reference = 1
this <= reference = 0
this >= reference = 1
this == reference = 0
this != reference = 1
this += 50 = 24-Feb-01
this -=60 = 6-Nov-00
29-Jan-63
25-Dec-85
5-Jan-01
Enter date:
Friday, 12-Jun-12
25-Dec-85 - 12-Jun-12 = 63383
12-Jun-12 between(1-Jan-85, 31-Dec-85): 0
12-Jun-12 max(25-Dec-85) = 25-Dec-85
12-Jun-12 min(25-Dec-85) = 12-Jun-12
The date of the previous Sunday is 7-Jun-12
The date of the previous Thursday is 11-Jun-12
date.compare(reference) = -63383
date.day() = 164
date.dayOfMonth() = 12
daysInYear(date.year()) = 366
date.firstDayOfMonth() = 153
date.hash() = 2383042
date.isEqual(reference) = 0
this + 50 = 1-Aug-12
50 + this = 1-Aug-12
this - 60 = 13-Apr-12
this < reference = 1
this > reference = 0
this <= reference = 1
this >= reference = 0
this == reference = 0
this != reference = 1
this += 50 = 1-Aug-12
this -=60 = 13-Apr-12
12-Jun-12
29-Jan-63
25-Dec-85
5-Jan-01
Enter date: